import Router from "vue-router";
import Vue from "vue"
import Hellow from "../components/Hellow.vue";
import Hi from "../components/Hi.vue";
import sonOne from "../components/children/son1.vue";
import sku from "../components/common/sku/sku.vue";
import { Sku } from "vant";
Vue.use(Router)
const routes = [{
  //默认首页
  path: "/",
  //路由重指向
  redirect: "/hellow"
}, {
  path: '/hellow',
  name: "hellow",
  component: Hellow
}, {
  path: "/Hi",
  name: "hi",
  component: Hi,
  //嵌套路由
  children: [{
    path: "sonOne",
    name: "sonOne",
    component: sonOne,
    children: [{
      path: "sku",
      name: Sku,
      component: sku
    }]
  }]
}]
const router = new Router({ routes })
export default router